<a href='https://github.com/angular/angular.js/edit/v1.6.x/docs/content/error/$location/badpath.ngdoc?message=docs(error%2Fbadpath)%3A%20describe%20your%20change...' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this Doc</a>


<h1>Error: $location:badpath
  <div><span class='hint'>Invalid Path</span></div>
</h1>

<div>
    <pre class="minerr-errmsg" error-display="Invalid url "{0}".">Invalid url "{0}".</pre>
</div>

<h2>Description</h2>
<div class="description">
  <p>This error occurs when the path of a location contains invalid characters.
The most common fault is when the path starts with double slashes (<code>//</code>) or backslashes (&#39;\&#39;).
For example if the base path of an application is <code>https://a.b.c/</code> then the following path is
invalid <code>https://a.b.c///d/e/f</code>.</p>

</div>


